import NetWork from "@/service/_request.js";
// import axios from 'axios'

class TransformationApi {
  async Transformation(params) {
    return NetWork.post(
      "itg/dlqxfw/rds/prediction/pred/tb-ocf-new/post_tb-ocf_new_findByCode",
      params
    );
  }

  // 111.198.60.33:9092/itg/dlqxfw/rds/geoapi/laps/geo?lat=35.37&lon=111.2

  async shikong(params) {
    return NetWork.get("itg/dlqxfw/rds/geoapi/laps/geo", params);
  }
  async Transformation(params) {
    return NetWork.post(
      "itg/dlqxfw/rds/prediction/pred/tb-ocf-new/post_tb-ocf_new_findByCode",
      params
    );
  }
  async gettq(params) {
    return NetWork.get(
      "itg/dlqxfw/rds/yike/tb-yike-month/powerTransmissionPred",
      params
    );
  }
  async getChart(params) {
    return NetWork.get("itg/dlqxfw/rds/geoapi/gdfs/pred", params);
  }
  async dianji(params) {
    return NetWork.get("itg/dlqxfw/rds/geoapi/gdfs/geo", params);
  }
  async Querytheline(params){
    return NetWork.get("/itg/dlqxfw/power/trans/gridline/over", params);
  }
}
export default new TransformationApi();
